#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int arr1[3][3] = { 0 };
int arr2[3][3] = { 0 };
int sum[3][3] = { 0 };
int i = 0;
int j = 0;
int y1()
{
	printf("input arr1:");
	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 3; j++)
		{
			scanf("%d", &arr1[i][j]);
		}
	}
}

int y2()
{
	printf("\ninput arr2:");
	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 3; j++)
		{
			scanf("%d", &arr2[i][j]);
		}
	}
}
int main()
{
	
	y1();
	y2();
	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 3; j++)
		{
			sum[i][j] = arr1[i][j] + arr2[i][j];
		}
	}
	printf("\n");
	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 3; j++)
		{
			printf("%d ", sum[i][j]);
		}
		printf("\n");
	}
	return 0;
}